﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace NewGuid
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] arge)
        {
        
            if (arge.Length==0)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
            } 
            else
            {
                switch (arge[0].ToLower())
                {
                    case "new":
                        string newguid = System.Guid.NewGuid().ToString().ToLower();
                        //复制到剪贴板
                        Clipboard.SetData(System.Windows.Forms.DataFormats.Text, newguid);
                        break;
                }
            }
        }
    }
}
